var net = require('net');

var server = net.createServer(function(connection) {
	console.log('client connected.');
	console.log(connection);
	
	connection.on('end', function() {
		
	});
	
	connection.write('Hello world!\r\n');
	connection.pipe(connection);
});

server.listen(8888, function() {
	console.log('server is listening...Port#8888');
});
